package oppsa.controller;

//Variables
public class ActionType {
	private int sequence;
	private String actionTypeID;
	private String actionTypeName;
	
	public ActionType() {
		this.sequence = 0;
		this.actionTypeID = null;
		this.actionTypeName = null;
	}
	
	public ActionType(int sequence, String actionTypeID, String actionTypeName) {
		this.sequence = sequence;
		this.actionTypeID = actionTypeID;
		this.actionTypeName = actionTypeName;
	}
	
	public ActionType(ActionType at) {
		this.sequence = at.sequence;
		this.actionTypeID = at.actionTypeID;
		this.actionTypeName = at.actionTypeName;
	}

	//Getters & Setters
	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	public String getActionTypeID() {
		return actionTypeID;
	}

	public void setActionTypeID(String actionTypeID) {
		this.actionTypeID = actionTypeID;
	}

	public String getActionTypeName() {
		return actionTypeName;
	}

	public void setActionTypeName(String actionTypeName) {
		this.actionTypeName = actionTypeName;
	}
	
	public boolean compareTo(ActionType at)
	{
		
		if (this.sequence == at.sequence && this.actionTypeName == at.actionTypeName && this.actionTypeID == at.actionTypeID) {
			return true;
		}
		
		return false;
	}
	
	

}
